/*
 * Java CMPP API
 * Copyright (C) 2006 by Youming.Xu
 * 
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 * 
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 526 Room, Hong Wa Building,22#,South Section1,
 * YiHuan Road,Sichuan,Chengdu,P.R.China
 * 
 * A copy of the LGPL can be viewed at http://www.gnu.org/copyleft/lesser.html
 * Java CMPP API author: xym008@gmail.net
 * Java CMPP API Homepage: http://cmppapi.sourceforge.net/
 * CMPPConstants.java,v 1.10 2006-7-412:37:05 xuym Exp
 */

package com.bci.cmpp;

/**
 * CMPPConstants.java
 * 
 * @author xuym
 * @version 1.0
 * 
 */
public final class CMPPConstants {

	public static final int CMPP_CONNECT = 0x00000001;

	public static final int CMPP_CONNECT_RESP = 0x80000001;

	public static final int CMPP_TERMINATE = 0x00000002;

	public static final int CMPP_TERMINATE_RESP = 0x80000002;

	public static final int CMPP_SUBMIT = 0x00000004;

	public static final int CMPP_SUBMIT_RESP = 0x80000004;

	public static final int CMPP_DELIVER = 0x00000005;

	public static final int CMPP_DELIVER_RESP = 0x80000005;

	public static final int CMPP_QUERY = 0x00000006;

	public static final int CMPP_QUERY_RESP = 0x80000006;

	public static final int CMPP_CANCEL = 0x00000007;

	public static final int CMPP_CANCEL_RESP = 0x80000007;

	public static final int CMPP_ACTIVE_TEST = 0x00000008;

	public static final int CMPP_ACTIVE_TEST_RESP = 0x80000008;

	public static final int CMPP_FWD = 0x00000009;

	public static final int CMPP_FWD_RESP = 0x80000009;

	public static final int CMPP_MT_ROUTE = 0x00000010;

	public static final int CMPP_MT_ROUTE_RESP = 0x80000010;

	public static final int CMPP_MO_ROUTE = 0x00000011;

	public static final int CMPP_MO_ROUTE_RESP = 0x80000011;

	public static final int CMPP_GET_MT_ROUTE = 0x00000012;

	public static final int CMPP_GET_MT_ROUTE_RESP = 0x80000012;

	public static final int CMPP_MT_ROUTE_UPDATE = 0x00000013;

	public static final int CMPP_MT_ROUTE_UPDATE_RESP = 0x80000013;

	public static final int CMPP_MO_ROUTE_UPDATE = 0x00000014;

	public static final int CMPP_MO_ROUTE_UPDATE_RESP = 0x80000014;

	public static final int CMPP_PUSH_MT_ROUTE_UPDATE = 0x00000015;

	public static final int CMPP_PUSH_MT_ROUTE_UPDATE_RESP = 0x80000015;

	public static final int CMPP_PUSH_MO_ROUTE_UPDATE = 0x00000016;

	public static final int CMPP_PUSH_MO_ROUTE_UPDATE_RESP = 0x80000016;

	public static final int CMPP_GET_MO_ROUTE = 0x00000017;

	public static final int CMPP_GET_MO_ROUTE_RESP = 0x80000017;

	/** Fee user type :destination terminal msisdn */
	public static final byte FEE_USER_DEST_MSISDN = 0;

	/** Fee user type :source terminal msisdn */
	public static final byte FEE_USER_SRC_MSISDN = 1;

	/** Fee user type :the third party */
	public static final byte FEE_USER_THIRD_PARTY = 2;

	/** Fee user type :is invalid */
	public static final byte FEE_USER_INVAILED = 3;

	/** Fee user fee type:free fee */
	public static final String FEE_FREE = "01";

	/** Fee user fee type:by item */
	public static final String FEE_BY_ITEM = "02";

	/** Fee user fee type:by month */
	public static final String FEE_BY_MONTH = "03";

	/** Fee user fee type:is fixed */
	public static final String FEE_FIXED = "04";

	/** Fee user fee type:othe */
	public static final String FEE_OTHER = "05";

	/** Message state */
	public static final String DELIVERED = "DELIVRD";

	public static final String EXPIRED = "EXPIRED";

	public static final String DELETED = "DELETED";

	public static final String UNDELIVERABLE = "UNDELIV";

	public static final String ACCEPTED = "ACCEPTD";

	public static final String UNKNOWN = "UNKNOWN";

	public static final String REJECTED = "REJECTD";

	/** the max number of dest user */
	public static final byte MAX_DEST_USER = 100;

	/** the max message length */
	public static final short MAX_MSG_LEN = 160;

	/** message encoding */
	public static final byte ASCII_CODING = 0;

	public static final byte LATIN1_CODING = 3;

	public static final byte BINARY_CODING = 4;

	public static final byte UCS2_CODING = 8;

	public static final byte GBK_CODING = 15;

	public static final byte CMPP_VERSION_2 = 0x20;

	public static final byte CMPP_VERSION_3 = 0x30;

	/**
	 * 
	 */
	public CMPPConstants() {
		super();
	}

}
